<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--查询用户--%>
    <a href="rest/user/1">1号用户</a>

    <%--添加用户--%>
    <form action="rest/user" method="post">
        <input type="text" name="username">
        <input type="password" name="password">
        <input type="submit" value="提交">
    </form>

    <%--删除用户--%>
    <form action="rest/user/1" method="post">
        <input type="hidden" name="_method" value="delete">
        <input type="submit" value="删除一号用户">
    </form>

    <%--修改用户--%>
    <form action="rest/user" method="post">
        <input type="hidden" name="_method" value="put">
        <input type="hidden" name="userId" value="1">
        <input type="text" name="username">
        <input type="password" name="password">
        <input type="submit" value="修改一号用户">
    </form>
</body>
</html>
